﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TimeProject.Engine.DbModels
{
    [Table("User")]
    public class User : EntityBase
    {
        /// <summary>
        /// The username.
        /// </summary>
        [Required]
        [MinLength(6)]
        [MaxLength(256)]
        public string Username { get; set; }

        /// <summary>
        /// The user's full name.
        /// </summary>
        [Required]
        [MaxLength(256)]
        public string FullName { get; set; }

        /// <summary>
        /// The user's e-mail address.
        /// </summary>
        [MaxLength(256)]
        public string EMail { get; set; }
    }
}
